Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: upgrade proxy-agent to ^6.3.0 to remove vm2 deps #13012

Merged
merged 4 commits into from
Jul 27, 2023

Conversation

awsluja
Copy link
Contributor

@awsluja awsluja commented Jul 26, 2023

Description of changes

E2e run https://tiny.amazon.com/1gmqt246c/IsenLink

This removes the last of the vm2 dependencies by upgrading proxy-agent.
Proxy agent constructor has changed since v5, so there were updates as well.
See proxy-agent docs here: https://github.com/TooTallNate/proxy-agents/tree/main/packages/proxy-agent

Proxy-agent uses this module to determine which proxy to use, so we don't need to manually specify http/https anymore, see:
https://www.npmjs.com/package/proxy-from-env
https://www.npmjs.com/package/proxy-from-env#environment-variables

We do still need to conditionally check if proxy vars are set to decide if we want to initialize a new proxyagent.

Issue #, if available

Description of how you validated changes

Checklist

  • PR description included
  • yarn test passes
  • Tests are changed or added
  • Relevant documentation is changed or added (and PR referenced)
  • New AWS SDK calls or CloudFormation actions have been added to relevant test and service IAM policies
  • Pull request labels are added

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@awsluja awsluja requested a review from a team as a code owner July 26, 2023 20:19
yarn.lock Outdated
@@ -31455,18 +31474,6 @@ node-pty@beta:
languageName: node
linkType: hard

"vm2@npm:^3.9.3":
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vm2 removal is here

@sobolk sobolk dismissed their stale review July 26, 2023 20:33

wrong button.

@awsluja awsluja requested a review from a team as a code owner July 26, 2023 21:44
@codecov-commenter
Copy link

codecov-commenter commented Jul 26, 2023

Codecov Report

Merging #13012 (c9a1cbe) into dev (ec9a2ba) will increase coverage by 48.40%.
Report is 265 commits behind head on dev.
The diff coverage is 57.65%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@             Coverage Diff             @@
##              dev   #13012       +/-   ##
===========================================
+ Coverage    0.00%   48.40%   +48.40%     
===========================================
  Files        1296      841      -455     
  Lines      149743    38033   -111710     
  Branches     1296     7789     +6493     
===========================================
+ Hits            0    18408    +18408     
+ Misses     148447    18032   -130415     
- Partials     1296     1593      +297     
Files Changed Coverage Δ
...rmation/auth-stack-builder/auth-stack-transform.ts 91.30% <0.00%> (+91.30%) ⬆️
...tack-builder/auth-user-pool-group-stack-builder.ts 51.72% <ø> (+51.72%) ⬆️
...h-stack-builder/user-pool-group-stack-transform.ts 94.59% <0.00%> (+94.59%) ⬆️
.../src/provider-utils/awscloudformation/constants.ts 100.00% <ø> (+100.00%) ⬆️
...e-walkthrough-types/awsCognito-user-input-types.ts 100.00% <ø> (+100.00%) ⬆️
...vice-walkthrough-types/cognito-user-input-types.ts 100.00% <ø> (+100.00%) ⬆️
...y-category-function/src/commands/function/build.ts 0.00% <0.00%> (ø)
...ify-category-function/src/events/prePushHandler.ts 33.33% <0.00%> (+33.33%) ⬆️
...ider-utils/awscloudformation/utils/layerHelpers.ts 21.80% <0.00%> (+21.80%) ⬆️
...er-utils/awscloudformation/utils/storeResources.ts 30.38% <ø> (+30.38%) ⬆️
... and 68 more

... and 1229 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

shared-scripts.sh Outdated Show resolved Hide resolved
@awsluja awsluja merged commit 989ec35 into aws-amplify:dev Jul 27, 2023
3 checks passed
@awsluja awsluja deleted the remove-remaining-vm2 branch July 27, 2023 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants